package com.wangyang.stock.po;

import java.util.HashSet;
import java.util.Set;

/**
 * MerchandiseUnit entity. @author MyEclipse Persistence Tools
 */

public class MerchandiseUnit implements java.io.Serializable {

	// Fields

	private Integer merchandiseUnitId;
	private String merchandiseUnitName;
	private Set merchandises = new HashSet(0);

	// Constructors

	/** default constructor */
	public MerchandiseUnit() {
	}

	public MerchandiseUnit(Integer merchandiseUnitId) {
		this.merchandiseUnitId = merchandiseUnitId;
	}

	/** full constructor */
	public MerchandiseUnit(String merchandiseUnitName, Set merchandises) {
		this.merchandiseUnitName = merchandiseUnitName;
		this.merchandises = merchandises;
	}

	// Property accessors

	public Integer getMerchandiseUnitId() {
		return this.merchandiseUnitId;
	}

	public void setMerchandiseUnitId(Integer merchandiseUnitId) {
		this.merchandiseUnitId = merchandiseUnitId;
	}

	public String getMerchandiseUnitName() {
		return this.merchandiseUnitName;
	}

	public void setMerchandiseUnitName(String merchandiseUnitName) {
		this.merchandiseUnitName = merchandiseUnitName;
	}

	public Set getMerchandises() {
		return this.merchandises;
	}

	public void setMerchandises(Set merchandises) {
		this.merchandises = merchandises;
	}

}